//
//  PKBaseTableView.swift
//  Panku
//
//  Created by mac on 2017/2/6.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKBaseTableView: UITableView {
    
    //MARK: - properties
    var placeholderView:UIView?{
        
        willSet{
        
        }
        
        didSet{
            placeholderView?.removeFromSuperview()
            self.addSubview(placeholderView!)
        }
    }
    
    //MARK: - init
    override init(frame: CGRect, style: UITableViewStyle) {
        super.init(frame: frame, style: style)
        setupTableView()
    }
    
    init(buildClosure: (PKBaseTableView) -> ()) {
        super.init(frame: CGRect.zero, style: .plain)
        setupTableView()
        
        buildClosure(self)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //设置
    private func setupTableView() -> Void{
        self.separatorStyle = .none
        
    }


}
